package com.booklove.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author author
 * @since 2024-09-22
 */
@Data
public class AddressVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "PK")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "地址属于的user_id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "收货人")
    @TableField("receive_name")
    private String receiveName;

    @ApiModelProperty(value = "是否默认地址 0-否 1-是")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty(value = "电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "省城市码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "省城市名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "市级码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "市级名称")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "区级码")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty(value = "区级名称")
    @TableField("district_name")
    private String districtName;

    @ApiModelProperty(value = "详细地址内容")
    @TableField("detail")
    private String detail;



}
